class Btn extends egret.Bitmap {

    public constructor(imgPath: string, callback: Function) {
        super(RES.getRes(imgPath));
        this.touchEnabled = true;
        this.addEventListener(egret.TouchEvent.TOUCH_TAP, callback, this);
    }
}